package com.sp.po;
// default package

import java.util.HashSet;
import java.util.Set;


/**
 * Role entity. @author MyEclipse Persistence Tools
 */

@SuppressWarnings("serial")
public class Role  implements java.io.Serializable {
    // Fields    
     private Integer roleId;
     private String roleName;
     private Integer roleState;
     private String chrnote;
     private Integer superId;
     private Set<Menu> menu_role = new HashSet<Menu>(0);
     private Set<Staff> staff_role = new HashSet<Staff>(0);

    // Constructors
	/** default constructor */
    public Role() {
    }

	/** minimal constructor */
    public Role(String roleName, Integer roleState) {
        this.roleName = roleName;
        this.roleState = roleState;
    }
    /** full constructor */
    public Role(Integer roleId, String roleName, Integer roleState,
			String chrnote, Integer superId, Set<Menu> menuRole,
			Set<Staff> staffRole) {
		super();
		this.roleId = roleId;
		this.roleName = roleName;
		this.roleState = roleState;
		this.chrnote = chrnote;
		this.superId = superId;
		menu_role = menuRole;
		staff_role = staffRole;
	}
    
    // Property accessors

    public Integer getRoleId() {
        return this.roleId;
    }
    
    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return this.roleName;
    }
    
    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Integer getRoleState() {
        return this.roleState;
    }
    
    public void setRoleState(Integer roleState) {
        this.roleState = roleState;
    }

    public String getChrnote() {
        return this.chrnote;
    }
    
    public void setChrnote(String chrnote) {
        this.chrnote = chrnote;
    }

    public Integer getSuperId() {
        return this.superId;
    }
    
    public void setSuperId(Integer superId) {
        this.superId = superId;
    }

	public Set<Menu> getMenu_role() {
		return menu_role;
	}

	public void setMenu_role(Set<Menu> menuRole) {
		menu_role = menuRole;
	}

	public Set<Staff> getStaff_role() {
		return staff_role;
	}

	public void setStaff_role(Set<Staff> staffRole) {
		staff_role = staffRole;
	}
}